package com.jiazhong.model;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

//实体Bean对象，该对象对应数据库中bl_user表
//类中的属性对应tbl_user表中的字段
//设置当前类与哪个表对应
@TableName("tbl_user")
public class User {
    //用于描述主键列
    @TableId(value = "user_id",type= IdType.ASSIGN_ID)
private long UserId;
    //用于描述普通列
    @TableField(value = "user_name")
private String UserName;
private String UserPassword;
private String UserEmail;
private Date UserBirthday;
private String userHobbys ;
private Integer userSex;
private String userAddress;
private String userStatus;
private Date createTime;
private Date updateTime;
private Integer isDeleted;

    public User() {
    }

    public User(long UserId, String UserName, String UserPassword, String UserEmail, Date UserBirthday, String userHobbys, Integer userSex, String userAddress, String userStatus, Date createTime, Date updateTime, Integer isDeleted) {
        this.UserId = UserId;
        this.UserName = UserName;
        this.UserPassword = UserPassword;
        this.UserEmail = UserEmail;
        this.UserBirthday = UserBirthday;
        this.userHobbys = userHobbys;
        this.userSex = userSex;
        this.userAddress = userAddress;
        this.userStatus = userStatus;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.isDeleted = isDeleted;
    }

    /**
     * 获取
     * @return UserId
     */
    public long getUserId() {
        return UserId;
    }

    /**
     * 设置
     * @param UserId
     */
    public void setUserId(long UserId) {
        this.UserId = UserId;
    }

    /**
     * 获取
     * @return UserName
     */
    public String getUserName() {
        return UserName;
    }

    /**
     * 设置
     * @param UserName
     */
    public void setUserName(String UserName) {
        this.UserName = UserName;
    }

    /**
     * 获取
     * @return UserPassword
     */
    public String getUserPassword() {
        return UserPassword;
    }

    /**
     * 设置
     * @param UserPassword
     */
    public void setUserPassword(String UserPassword) {
        this.UserPassword = UserPassword;
    }

    /**
     * 获取
     * @return UserEmail
     */
    public String getUserEmail() {
        return UserEmail;
    }

    /**
     * 设置
     * @param UserEmail
     */
    public void setUserEmail(String UserEmail) {
        this.UserEmail = UserEmail;
    }

    /**
     * 获取
     * @return UserBirthday
     */
    public Date getUserBirthday() {
        return UserBirthday;
    }

    /**
     * 设置
     * @param UserBirthday
     */
    public void setUserBirthday(Date UserBirthday) {
        this.UserBirthday = UserBirthday;
    }

    /**
     * 获取
     * @return userHobbys
     */
    public String getUserHobbys() {
        return userHobbys;
    }

    /**
     * 设置
     * @param userHobbys
     */
    public void setUserHobbys(String userHobbys) {
        this.userHobbys = userHobbys;
    }

    /**
     * 获取
     * @return userSex
     */
    public Integer getUserSex() {
        return userSex;
    }

    /**
     * 设置
     * @param userSex
     */
    public void setUserSex(Integer userSex) {
        this.userSex = userSex;
    }

    /**
     * 获取
     * @return userAddress
     */
    public String getUserAddress() {
        return userAddress;
    }

    /**
     * 设置
     * @param userAddress
     */
    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    /**
     * 获取
     * @return userStatus
     */
    public String getUserStatus() {
        return userStatus;
    }

    /**
     * 设置
     * @param userStatus
     */
    public void setUserStatus(String userStatus) {
        this.userStatus = userStatus;
    }

    /**
     * 获取
     * @return createTime
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取
     * @return updateTime
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置
     * @param updateTime
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 获取
     * @return isDeleted
     */
    public Integer getIsDeleted() {
        return isDeleted;
    }

    /**
     * 设置
     * @param isDeleted
     */
    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public String toString() {
        return "User{UserId = " + UserId + ", UserName = " + UserName + ", UserPassword = " + UserPassword + ", UserEmail = " + UserEmail + ", UserBirthday = " + UserBirthday + ", userHobbys = " + userHobbys + ", userSex = " + userSex + ", userAddress = " + userAddress + ", userStatus = " + userStatus + ", createTime = " + createTime + ", updateTime = " + updateTime + ", isDeleted = " + isDeleted + "}";
    }
}
